package com.dxt.dao;

import com.dxt.model.BusiLogBean;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

@Repository
public interface BusiLogDao {

    @Insert("insert into dxt_busi_log (device_id,original_str,new_json,log_type,create_date) " +
            "value (#{deviceId},#{originalStr},#{newJson},#{logType},#{createDate})")
    @Options(useGeneratedKeys = true, keyProperty = "id", keyColumn = "id")
    int addBusiLog(BusiLogBean busiLogBean);

    @Update("update dxt_busi_log set deal_type = #{dealType},deal_date = #{dealDate} where device_id = #{deviceId} and id = #{id}")
    int modifyBusiLog(BusiLogBean busiLogBean);
}
